package cn.jd.system.mapper;

import cn.jd.system.domain.RolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    List<RolePermission> findAll();

    void addRolePermissions(@Param("id") Long id,@Param("permissions") List<Long> permissions);
    @Delete("delete from t_role_permission where role_id=#{id} ")
    void removeByRoleId(Long id);
}
